#! /usr/bin/python

# -*- utf-8 -*-
print("hello world")

# 基本数据类型

# Number, String, List, Tuple, Sets, Dictionary


# 不可变数据
# Number
num = 12
num = 13
print(num)
print(type(num))

strs = "23"
print(strs)
print(type(strs))

print(isinstance(strs, str))


# str
strs = "Rubboolf"
print(strs[0:-1])
print(strs[2:6])

print('Ru\noob')

# list
list = [ 'abcd', 786 , 2.23, 'runoob', 70.2 ]
tinylist = [123, 'runoob']

print(list)
print(list[0])
list[0] = "test"
print(list[0])

# tuple
tuple = ( 'abcd', 786 , 2.23, 'runoob', 70.2  )
tinytuple = (123, 'runoob')
print(tuple)
# tuple[0] = "test" // error
print(tuple[1:3])



